package com.topfinance.payment.service;

import java.util.List;
import com.topfinance.cnaps2.service.IBaseManager;
import com.topfinance.frame.exception.AppException;
import com.topfinance.payment.ebo.TCfgFmt8583Ebo;
import com.topfinance.payment.ebo.TCfgFmtXmlEbo;
import com.topfinance.payment.ebo.TCfgFormatEbo;

public interface ITCfgFormatMgr extends IBaseManager  {


	//获得格式协议
	public List<TCfgFormatEbo> getAllFormat() throws AppException;

	//获得格式协议及格式定义
	public String getFmtByXML(String fmtName) throws AppException;

	//导入格式协议及格式定义
	public void putFmtByXML(String fmtXML) throws AppException;
	
	public TCfgFormatEbo getTCfgFormat(Integer oid) throws AppException;
	
	public void addFormat(TCfgFormatEbo o) throws AppException;
	
	public void editFormat(TCfgFormatEbo o) throws AppException;
	
	public void deleteTCfgFormat(TCfgFormatEbo o) throws AppException;
	
	public void deleteTCfgFormat(Integer oid) throws AppException;
	
	//获得8583格式明细列表
	public List<TCfgFmt8583Ebo> getAllFmt8583(Integer fmtOId,String fmtName) throws AppException;

	//获得XML格式定义
	public List<TCfgFmtXmlEbo> getAllFmtXML(Integer fmtOId,String fmtName) throws AppException;

	//获得位置对应序列号
	//fmtOId=format对应的主键，pos=位置名称
	public String getPosSequn(Integer fmtOId,String pos) throws AppException;
}
